package com.cq.mapper;

import com.cq.pojo.*;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ActivityAnalysisMapper {
    int countByExample(ActivityAnalysisExample example);

    int deleteByExample(ActivityAnalysisExample example);

    int insert(ActivityAnalysis record);

    int insertSelective(ActivityAnalysis record);

    List<ActivityAnalysis> selectByExample(ActivityAnalysisExample example);

    int updateByExampleSelective(@Param("record") ActivityAnalysis record, @Param("example") ActivityAnalysisExample example);

    int updateByExample(@Param("record") ActivityAnalysis record, @Param("example") ActivityAnalysisExample example);

    List<ActivityAnalysis> findNewActivities();

    Alog getAlog(@Param("campaignId") String campaignId);

    ActivityAnalysis selectAnByCId(@Param("campaignId") String campaignId);

    AlogAvg getAlogAvg(String activityType);

    List<ConversionIncome> getConversionIncome(String campaignId);

    ConversionIncome getConversionIncomeAvg();

    ConversionIncome getConversionIncomeAvgUser();

    List<MediaSlot> selectMediaSlot(String campaignId, String contactPoint, String orderField, String orderBy, String media);

    List<String> selectAllMedia();

    List<ActivityAnalysis> selectActivityCpm();
}